GO
ALTER TABLE [dbo].[DependentTask] ADD
        CONSTRAINT [UQ_DependentTask_SourceTask_TargetTask] UNIQUE 
		(
			[SourceTask_Id], 
			[TargetTask_Id]
        )

